package com.jessechanrui.template.core.infrastructure;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

/**
 * @author chenrui
 * @version 1.0
 * @description BaseConverter
 * @date 2025/8/8
 */
public interface BaseConverter<PO, ENTITY>{
    ENTITY toEntity(PO po);
    PO toPO(ENTITY entity);
    List<PO> toPOList(List<ENTITY> entityList);
    List<ENTITY> toEntityList(List<PO> poList);
    Page<ENTITY> convertPage(Page<PO> poPage);
}
